package com.lakeworks.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lakeworks.common.annotation.Excel;
import com.lakeworks.common.domain.base.BaseDomain;
import jdk.dynalink.linker.LinkerServices;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * 入厂单对象 opr_pickup
 *
 * @author lake
 * @date 2023-02-08
 */
@Builder
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class OprPickup extends BaseDomain {
    private static final long serialVersionUID = 1L;

    /**
     * 渠道ID
     */
    @Excel(name = "渠道ID")
    private Long channelId;

    /**
     * 渠道入厂单号
     */
    private String chPickupNo;

    /**
     * 渠道订单号
     */
    @Excel(name = "渠道订单号")
    private String orderNo;

    /**
     * 物流公司
     */
    @Excel(name = "物流公司")
    private String carrier;

    /**
     * 运单号
     */
    @Excel(name = "运单号")
    private String expressNo;

    /**
     * 商品的数量
     */
    @Excel(name = "商品的数量")
    private Integer quantity;

    /**
     * 预计到厂日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "预计到厂日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date eta;

    /**
     * 状态: 在途/签收/核查/入厂
     */
    @Excel(name = "状态: 在途/签收/核查/入厂")
    private String status;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String comment;

    //超时未入场时长
    private Integer hours;

    private List<String> statuses;

}
